home *** CD-ROM | disk | FTP | other *** search
- ; Example configuration file for OS/2 port of Samba.
- ; ============================================================================
- ; For the format of this file and comprehensive descriptions of all the
- ; configuration option, please refer to config.txt
- ;
- ; The following configuration should suit most systems for basic usage and
- ; initial testing.
- ;
- ; Things you need to check:
- ; --------------------------
- ;
- ; Paths
- ;
- ; Look at the "hosts allow" option, unless you want everyone on the internet
- ; to be able to access your files.
- ;
- [global]
- os level = 1
- domain master = no
- dead time = 15
- max log size = 100
- ; Have not seen messages working - you are welcome to try though
- ; message command = "smbos2 smbmsg.cmd %s %f %m %t"
- lock directory = d:/tmp/samba
- share modes = no
- workgroup = WORKGROUP
- server string = %h at %T
- ; Have not seen printing working - you are welcome to try.
- ; load printers = yes
- ; printcap = c:/tcpip/etc/printcap
- ; printing = aix
- ; print command = "smbos2 lpr %s"
- ; lpq command = "lpq"
- guest account = guest
- preserve case = yes
- default service = public
- guest only = yes
- dfree command = smbdf.cmd
-
- ; This next option sets a separate log file for each client. Remove
- ; it if you want a combined log file.
- ; log file = /usr/local/samba/log
-
- ; You will need a world readable lock directory and "share modes=yes"
- ; if you want to support the file sharing modes for multiple users
- ; of the same files
- ; lock directory = /usr/local/samba/var/locks
- ; share modes = yes
-
- ;[Post]
- ; comment = Printer (postscript)
- ; path = d:/tmp
- ; read only = true
- ; printable = true
- ; postscript = true
- ; printer = tree_eater
- ; public = true
-
- ; A publicly accessible directory, but read only.
- [public]
- comment = Public Stuff (mostly for OS/2)
- path = d:/pub
- public = yes
- writable = no
- printable = no
- ; Publicly accessible, read/write
- [incoming]
- comment = Incoming Files
- path = d:/pub/incoming
- public = yes
- writable = yes
- printable = no
-
- ;
- ; Other examples.
- ;
- ; A private printer, usable only by fred. Spool data will be placed in fred's
- ; home directory. Note that fred must have write access to the spool directory,
- ; wherever it is.
- ;[fredsprn]
- ; comment = Fred's Printer
- ; valid users = fred
- ; path = /homes/fred
- ; printer = freds_printer
- ; public = no
- ; writable = no
- ; printable = yes
- ;
- ; A private directory, usable only by fred. Note that fred requires write
- ; access to the directory.
- ;[fredsdir]
- ; comment = Fred's Service
- ; path = /usr/somewhere/private
- ; valid users = fred
- ; public = no
- ; writable = yes
- ; printable = no
- ;
-
- ;
- ; a service which has a different directory for each machine that connects
- ; this allows you to tailor configurations to incoming machines. You could
- ; also use the %u option to tailor it by user name.
- ; The %m gets replaced with the machine name that is connecting.
- ;[pchome]
- ; comment = PC Directories
- ; path = /usr/pc/%m
- ; public = no
- ; writeable = yes
- ;
- ;
- ; A publicly accessible directory, read/write to all users. Note that all files
- ; created in the directory by users will be owned by the default user, so
- ; any user with access can delete any other user's files. Obviously this
- ; directory must be writable by the default user. Another user could of course
- ; be specified, in which case all files would be owned by that user instead.
- ;[public]
- ; path = /usr/somewhere/else/public
- ; public = yes
- ; only guest = yes
- ; writable = yes
- ; printable = no
- ;
- ;
- ; The following two entries demonstrate how to share a directory so that two
- ; users can place files there that will be owned by the specific users. In this
- ; setup, the directory should be writable by both users and should have the
- ; sticky bit set on it to prevent abuse. Obviously this could be extended to
- ; as many users as required.
- ;[myshare]
- ; comment = Mary's and Fred's stuff
- ; path = /usr/somewhere/shared
- ; valid users = mary fred
- ; public = no
- ; writable = yes
- ; printable = no
- ; create mask = 0765
-
-
-
-
-